package ar.com.cema.methodology.analyzer.services;

import java.util.Set;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import ar.com.cema.methodology.analyzer.model.Person;
import ar.com.cema.methodology.analyzer.model.Survey;

@Service("surveyService")
public interface SurveyService {

	@Transactional(propagation=Propagation.REQUIRED)
	Survey createEmptySurveyFor(Person person);
	
	@Transactional(propagation=Propagation.REQUIRED)
	Survey save(Survey survey);

	@Transactional(propagation=Propagation.SUPPORTS)
	Set<Person> listInterviewees();
}
